package com.mytest.provider.es.service;

import com.myrest.provider.poi.work.entities.user.ESUser;
import org.springframework.data.domain.Page;

import java.util.Iterator;
import java.util.List;

/**
 * @Author: llq
 * @Date: 2020/4/8
 */
public interface IElasticService {
    void createIndex();

    void deleteIndex(String index);

    void save(ESUser docBean);

    void saveAll(List<ESUser> list);

    Iterator<ESUser> findAll();

//    Page<ESUser> findByContent(String content);

    /*Page<ESUser> findByFirstCode(String firstCode);

    Page<ESUser> findBySecordCode(String secordCode);*/

//    Page<ESUser> query(String key);

}
